package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SaleCarBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ISaleCarMapper  extends BaseMapper<SaleCarBean> {
    List<SaleCarBean> findById(Integer userId);

    /**
     * 通过商品id查询购物车中是否有该商品
     * @param productId
     * @return
     */
    SaleCarBean findByProductId(Integer productId);

}
